<?php

namespace app\admin\controller;

use think\Controller;

class common extends Controller
{
    public function __construct()
    {
        parent::__construct();
        if(!session('admin')){
            $this->redirect('admin/user/login');
        }
    }
}
